<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%>
<head>
    <title><fmt:message key="container" /></title>
</head>
<body>
    <h1><fmt:message key="container" /></h1>
    <table>
        <tbody>
            <tr>
                <th><fmt:message key="container_title" /></th>
                <td>
                    <c:out value="${container.title}"/>                
				</td>
                <th><fmt:message key="container_friendlyName" /></th>
                <td>
                    <c:out value="${container.friendlyName}"/>                
				</td>
            </tr>
            <tr>
                <th><fmt:message key="container_maxContentlets" /></th>
                <td>
                    <c:out value="${container.maxContentlets}"/>                
				</td>
                <th><fmt:message key="container_live" /></th>
                <td>
                    <c:out value="${container.live}"/>               
				</td>
            </tr>		
			<tr>
                <th><fmt:message key="container_code" /></th>
                <td colspan="3">
                    <c:out value="${container.code}"/>               
				</td>
            </tr>
            <tr>
                <th><fmt:message key="container_modDate" /></th>
                <td>
                    <c:out value="${container.modDate}"/>                
				</td>
                <th><fmt:message key="container_modUser" /></th>
                <td>
                    <c:out value="${container.modUser}"/>                
				</td>
            </tr>
            <tr>
                <th><fmt:message key="container_notes" /></th>
                <td>
                    <c:out value="${container.notes}"/>               
				</td>
                <th><fmt:message key="container_structureInode" /></th>
                <td>
					<c:url var="showUrl" value="/domain/structure/show">
						<c:param name="structure.inode" value="${container.structureInode}" />
					</c:url>
                    <a href="${showUrl}"><c:out value="${container.structure.name}"/></a>
				</td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="2">
                    <div class="buttons">
                        <c:url var="updateUrl" value="/domain/container/updateForm.action">
                            <c:param name="container.inode" value="${container.inode}"/>
                        </c:url>
                        <a href="${updateUrl}"><span><fmt:message key="label.link.update"/></span></a>
                        <c:url var="confirmDeleteUrl" value="/domain/container/confirmDelete.action">
                            <c:param name="container.inode" value="${container.inode}"/>
                        </c:url>
                        <a id="confirmDeleteUrl" href="${confirmDeleteUrl}"><span><fmt:message key="label.link.delete"/></span></a>
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.AjaxEventDecoration({
                                elementId: "confirmDeleteUrl",
                                event: "onclick",
                                popup: "true",
                                params: { decorator: "none" }
                            }));
                        </script>
                    </div>
                </td>
            </tr>
        </tfoot>
    </table>

	<h2><fmt:message key="searchResult" /></h2>
	<jsp:include page="/WEB-INF/views/domain/contentContainer/searchResult.jsp" flush="true">
		<jsp:param name="includeBody" value="true" />
	</jsp:include>

</body>
